package org.example.examfx02.entity;

public class Student extends User{
    private String id;
    private String myClass;
    public Student(){}
    public Student(String username,String id,String myClass){
        this.myClass = myClass;
        this.username = username;
        this.id = id;
    }
    public Student(String username,String id,String myClass,String password,boolean isChanged){
        this.myClass = myClass;
        this.username = username;
        this.id = id;
        this.isChanged = isChanged;
        this.password = password;
    }

    public void show(){
        System.out.println(id+" "+username+" "+ myClass);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMyClass() {
        return myClass;
    }

    public void setMyClass(String myClass) {
        this.myClass = myClass;
    }
}
